// TOWN DIALOGUE SCRIPT
//    Town 34: Blackcrag Fortress

begintalkscript;

variables;

short i,j,k,r1,choice;

// Seymour

begintalknode;
	tag = 40;
	state = -1;
	nextstate = 1;
	question = "Seymour";
	text1 = "You are welcomed to mighty Blackcrag Fortress by a small mousy man, probably a valet. He sits, shivering, in this damp storeroom. When you approach, he jumps to his feet.";
	text2 = "He is terrified of you. _I am Seymour._ He adds, quietly, _Don't hit me._ Fortunately, he doesn't shout an alarm. He seems used to people sneaking into the fortress.";
	text5 = "Seymour trembles before you. He is still not shouting an alarm. _I hope you still aren't going to hit me._";
	action = INTRO;

begintalknode;
	state = 1;
	nextstate = 2;
	question = "_I'm not going to hit you._";
	text1 = "He shifts his weight nervously from foot to foot. _I was, well, left to wait here and give you a message._";

begintalknode;
	state = 2;
	nextstate = 3;
	question = "_What message?_";
	text1 = "_I was told to stay here and to tell you that Empress Prazac herself wishes to meet you._";
	text2 = "_Also if you need supplies you're allowed to take the stuff in this storeroom and the one to the south. A reward from the Empress for the help you've been to us already._";

begintalknode;
	state = 3;
	nextstate = -1;
	question = "_Forgive my ignorance, but who is Empress Prazac?_";
	text1 = "_She's the leader of the whole Empire._";

begintalknode;
	state = 3;
	nextstate = 4;
	question = "_Where can I meet the Empress?_";
	text1 = "_She's in the throne room. You can get to it to the south, though you'll have to do some looking to find the way. Just be careful._";
	text2 = "_And, now that I have said that, I am free to return to safety. I hope._";
	action = SET_SDF 34 15 1;

begintalknode;
	state = 4;
	nextstate = -1;
	question = "_Why do I have to be careful if the Empress herself wants to meet me?_";
	text1 = "He fidgets. _I keep out of the politics. It's dangerous. They tell me some people don't want you here, so you're supposed to stay out of sight. If Avernites are seen here, it could cause a lot of problems. Just so you know._";

begintalknode;
	state = 1;
	nextstate = -1;
	condition = gf(34,15) >= 1;
	question = "_Now that you've given your message, you are dismissed._";
	text1 = "He looks relieved that he will get through another day without being butchered. He slips off through the door to the west.";
	action = END_TALK;
	code =
		erase_char(3407);
	break;

begintalknode;
	state = 1;
	nextstate = 5;
	question = "_Why are you so nervous?_";
	text1 = "_I was told about you. You're from Avernum. You're a brutal ... I've just ... I've heard about you._";

begintalknode;
	state = 5;
	nextstate = 1;
	question = "_Well, just be quiet and we'll all be fine._";
	text1 = "_Yes. Yes, sir._";

begintalknode;
	state = 5;
	nextstate = -1;
	question = "_Well, you heard right! Now I will kill you, Empire worm!_";
	text1 = "_Aaaahhhh!!!_ He screams and runs away through the door to the west.";
	action = END_TALK;
	code =
		sf(34,15,1);
		erase_char(3407);
	break;

begintalknode;
	state = 1;
	nextstate = -1;
	condition = has_spec_item(15) > 0;
	question = "_Mayor Scowcroft gave me this ticket. I am supposed to turn it in to someone in authority to get a reward._";
	text1 = "_Oh, I don't know about that. The only person in authority you're supposed to see is the Empress. All other authority people aren't supposed to see you. They'd kill you!_";

// Howar

begintalknode;
	tag = 60;
	state = -1;
	nextstate = 29;
	question = "Howar";
	text1 = "This shop is filled with foul smells. Vials and gourds cover every available surface, and the proprietor's hands are covered with permanent green stains.";
	text2 = "This is a small apothecary, supplying the many servants and courtiers in this fortress. The aged proprietor grins toothlessly. _I am Howar._";
	text5 = "Howar grins broadly. Webs of deep wrinkles partition his face. He must be a skilled alchemist. Most in this line of work are killed well before this age by explosions.";
	action = INTRO;

begintalknode;
	state = 29;
	nextstate = 30;
	question = "_What are your responsibilities here?_";
	text1 = "_I am the alchemist for Blackcrag, here to do major research._";

begintalknode;
	state = 30;
	nextstate = 31;
	question = "_Why did you choose to do your research at this fortress?_";
	text1 = "_Many mages are here to do research. It's part of why Valorim has been put under quarantine._";

begintalknode;
	state = 31;
	nextstate = -1;
	question = "_Why has Valorim been placed under quarantine?_";
	text1 = "_Nobody is being let out of Valorim, to help make sure none of the monsters sneak out with them. The Empress is trying to buy time so we can research to find out ways to combat the creatures. That's why we sages are here._";

begintalknode;
	state = 31;
	nextstate = -1;
	question = "_How many other researchers are around here?_";
	text1 = "_There are three of us in this corner of the fortress, each looking for solutions as fast as we can._";

begintalknode;
	state = 29;
	nextstate = -1;
	question = "_Can I buy any potions?_";
	text1 = "You conclude your business.";
	code =
		begin_shop_mode("Howar's Potions","Howar knows an eclectic mix of recipes, some weak, some strong, and one very exceptional. He teaches out of worn tomes carried with him when he fled the Keep of Tinraya.",118,6,3);
	break;

begintalknode;
	state = 29;
	nextstate = 33;
	question = "_Can you make any custom potions for me?_";
	text1 = "_No. I do not have the resources. I was a potion maker in the Keep of Tinraya before the beasts came. I could have made very useful concoctions for you there._";

begintalknode;
	state = 33;
	nextstate = -1;
	question = "_Tell me about the beasts._";
	text1 = "_They are terrifying. Fast. Muscular. They are naturally magical. Each can unleash strange powers. You never know what they can do until you get close to them._";
	text2 = "_We have been trying to find a way to disrupt the magic that protects them, but we have had no luck. I hope someone or something can find a weakness in those creatures, because they are terrifying._";
	
begintalknode;
	state = 33;
	nextstate = -1;
	question = "_Tell me about Tinraya._";
	text1 = "He frowns and looks down at the ground. _The beasts came. We were completely unprepared. They made short work of us. When we fled, many of us were picked off during the journey east. Many of us lost ... lost ..._";
	text2 = "_Please excuse me. I need some time to ... work._ He turns away.";
	action = END_TALK;

begintalknode;
	state = 29;
	nextstate = -1;
	condition = gf(34,20) >= 1 && gf(34,21) == 0;
	question = "_I'm looking for something called the 'Grimoire of Thren.' Cerulian, the librarian in Moon, is waiting for it._";
	code =
		run_hardcode(53);
	break;

// Petrie

begintalknode;
	tag = 80;
	state = -1;
	nextstate = 57;
	question = "Petrie";
	text1 = "There is a woman sitting at her desk, holding a powerful magnifying glass in her hand. She is examining a huge cockroach, chained to a stone platform and twitching grossly.";
	text2 = "She straightens up and turns when you enter. _I am Petrie. Greetings._";
	text5 = "Petrie smiles at you. Every once in a while, the large cockroach she is examining hisses and starts to walk away. She corrals it and returns it to its plate. ";
	action = INTRO;

begintalknode;
	state = 57;
	nextstate = 58;
	question = "_What are you doing?_";
	text1 = "She looks down at the cockroach with a combination of fascination and revulsion. It looks back up at her. _I am doing research on this vile beast._";

begintalknode;
	state = 58;
	nextstate = -1;
	question = "_Is there lots of research happening in the fortress?_";
	text1 = "_Yes, now. Many mages have come here, to try to figure out where the monsters are coming from and how to deal with them._";

begintalknode;
	state = 58;
	nextstate = 59;
	question = "_Have you discovered anything interesting about the roaches?_";
	text1 = "_Yes. They plague the Isle of Bigail. I'm trying to figure out how it was made so large._ She pokes it. It tries to bite her finger. _But I am sure you have other areas of interest._";
	text3 = "_Not yet. I know you wiped the roaches out, but we still need to figure out how they were made. Otherwise, the next plague to appear will cause great harm._ She pokes it. It tries to bite her finger. _But I am sure you have other areas of interest._";
	action = DEP_ON_SDF 307 5 0;

begintalknode;
	state = 59;
	nextstate = -1;
	question = "_I suppose. Do you know who I am?_";
	text1 = "_I think so. We were told that you Avernites might be coming and that we should assist you if possible. I know several spells of great power. I can teach you if you wish._";
	action = SET_SDF 34 12 1;

begintalknode;
	state = 57;
	nextstate = -1;
	condition = gf(34,12) >= 1;
	question = "_Please teach me some spells._";
	text1 = "You conclude your business.";
	code =
		begin_shop_mode("Petrie's Spells","Petrie is a powerful wizard, who is willing to share some of her great knowledge with you. Unfortunately, she expects to be compensated for her assistance. Her desire to aid the good fight only goes so far.",119,6,3);
	break;

begintalknode;
	state = 58;
	nextstate = 60;
	question = "_What other sorts of creatures are you researching?_";
	text1 = "_Anything I can, or anything I can get specimens of. Because of the quarantine, it is very difficult to get solid information and objects I can use for research._";

begintalknode;
	state = 60;
	nextstate = -1;
	condition = gf(34,19) <= 1;
	question = "_Is there anything in particular you are looking for?_";
	text1 = "_I don't know. I have heard rumors that some golems have strange machinery inside their heads. Weird things that fall out when our warriors smash them. I would like to have a sample. I think it would be very useful in understanding the golems' nature. They may be some sort of a control mechanism._";
	text2 = "_If you can find one of those items and bring it to me, I would appreciate it._";
	action = SET_SDF 34 19 1;
	code =
		toggle_quest(86,1);
	break;
	
begintalknode;
	state = 57;
	nextstate = -1;
	condition = gf(34,19) == 1 && party_has_item(596);
	question = "_I did find one of the golem torcs. Here it is. I hope that it is useful._ (Give the golem diadem.)";
	code =
		run_hardcode(52);
	break;

// Shane

begintalknode;
	tag = 100;
	state = -1;
	nextstate = 85;
	question = "Shane";
	text1 = "A dour priest sits at his desk, examining a vial of ocher slime. He looks up at you, recognizes you, and sighs.";
	text2 = "_I am Shane, of the Anama,_ he says grimly. There are journals and monster samples on the table in front of him, and a large sack, bulging with scrolls, is at his feet.";
	text5 = "Shane shakes the vial filled with ocher slime. It bubbles, hisses, and tries to climb out of the container. You notice that Shane's hand has been repeatedly burned.";
	action = INTRO;
	
begintalknode;
	state = 85;
	nextstate = -1;
	question = "_An Anama member in an Empire fortress?_";
	text1 = "_Indeed. They heard that I was a sage. I studied the beasts of the wild, looking for ways to use their parts to replace magical spells._";
	text2 = "_Empress Prazac is very practical. She works with what she has._";
	
begintalknode;
	state = 85;
	nextstate = 86;
	question = "_What do you do here in the fortress?_";
	text1 = "_Well, I did have my own work, once.  Profitable, even. But I had to interrupt it when I was forced to come here._";
	text2 = "_Since I was an expert on monsters, they enlisted me and made me come here to do research on the monster plagues.";
	
begintalknode;
	state = 86;
	nextstate = 85;
	question = "_What was your profitable business?_";
	text1 = "_I had a thriving trade in items, highly reliable and hand crafted, crafted from monster samples I found. They can duplicate the effects of spells without violating my principles._";
	text2 = "_I did bring some with when I was forced to come here, in the hope of wresting some profit from this tedious exercise. Care to purchase some?_";

begintalknode;
	state = 86;
	nextstate = 87;
	question = "_I take it you didn't volunteer to come and help._";
	text1 = "_All the powerful mages within 500 miles were brought to this area, to try to figure out what the monsters in Valorim were there for. Like what happens to those barbarians is our problem!_ He looks at the slime grumpily.";

begintalknode;
	state = 85;
	nextstate = -1;
	question = "_Have anything for trade?_";
	text1 = "You conclude your business.";
	code =
		begin_shop_mode("Shane's Crafts","Shane starts to pull items out of a bag for your inspection. It is a small sack, but it contains an amazing volume of items.",120,6,3);
	break;

begintalknode;
	state = 87;
	nextstate = -1;
	question = "_You should show some more concern for your fellow citizens._";
	text1 = "He snorts. _Oh please! Everyone knows what a bunch of arrogant, judgmental creatures fill the rest of the Empire! They look down on us. They think we are ignorant and backwards._";

begintalknode;
	state = 85;
	nextstate = 88;
	question = "_Where did you get that slime?_";
	text1 = "_It was brought to me from southern Valorim before the continent was quarantined. Someone had to trudge the whole length of that backwater just to bring me this._";

begintalknode;
	state = 88;
	nextstate = -1;
	question = "_What have you learned about it?_";
	text1 = "_It was magically created, of course, like all giant slimes. But it is an all-new creation, not an adaptation of an existing design. Remarkable. Must have been made by a powerful magical talent._";

begintalknode;
	state = 85;
	nextstate = -1;
	condition = gf(171,11) >= 1 && gf(34,20) == 0;
	question = "_I'm looking for something called a 'Grimoire of Thren.' Do you have one?_";
	text1 = "_Hmmm. No. Never heard of it. I think._ He stops for a moment. _Wait. The alchemist. He said he found a tome the other day. He reads a lot. He might know._";
	action = SET_SDF 34 20 1;

begintalknode;
	state = 85;
	nextstate = -1;
	question = "_I would like to learn some rituals._";
	text1 = "You conclude your business.";
	code =
		if (has_spec_item(40))
		begin_shop_mode("Shane's Spells","Shane is eager to share his knowledge of powerful rituals. Because you wear an Anama ring, you get a discount.",121,0,3);
		else begin_shop_mode("Shane's Spells","Shane is eager to share his knowledge of powerful rituals. Anything to keep you from being tempted to use magic. For a donation, of course.",121,5,3);
	break;

begintalknode;
	state = 85;
	nextstate = -1;
	condition = 1;
	question = "_I don't need anything else._";
	text1 = "_Then I wish you luck. You will be sent back to Valorim, I'm sure. I envy you._";
	action = END_TALK;


// Prosise

begintalknode;
	tag = 120;
	state = -1;
	nextstate = 113;
	question = "Prosise";
	text1 = "You meet a member of Blackcrag Fortress's extensive serving staff. You terrify her. You ask her name. _I'm Prosise,_ she stammers.";
	text5 = "You meet Prosise again. She is still scared. You start to feel self-conscious, realizing how your pale skin and thin hair must make you stand out.";
	action = INTRO;

begintalknode;
	state = 113;
	nextstate = 114;
	question = "_Are you employed here?_";
	text1 = "_I'm ... I'm ... I work in the kitchen._ She stares at your face intently. Like many on the surface, she can recognize an Avernite when she sees one.";

begintalknode;
	state = 114;
	nextstate = -1;
	question = "_Can I have some food?_";
	text1 = "_Yes. Take what food you want. I need to get back to the kitchen now._ She starts to back away. _Sorry!_ She runs away.";
	action = END_TALK;

// Winn

begintalknode;
	tag = 140;
	state = -1;
	nextstate = 141;
	question = "Winn";
	text1 = "Unsurprisingly, Blackcrag has its own forge. It is large and well-equipped. The woman running it is a top-tier craftswoman. A major Empire fortress would settle for no less.";
	text2 = "She looks you over. She recognizes who you are, and she doesn't care. _I am Winn. Greetings._";
	text5 = "Winn says, _Still have business with me? How else can I help?_";
	action = INTRO;

begintalknode;
	state = 141;
	nextstate = 142;
	question = "_You have a nice forge here. Been busy?_";
	text1 = "_All of us in Blackcrag are. I'm helping prepare the army for its assault. Of course, I do some work on the side in the meantime._";

begintalknode;
	state = 142;
	nextstate = -1;
	question = "_There is going to be an assault?_";
	text1 = "_Sure. You didn't think that the quarantine would last forever? That the Empire would give up on a whole continent?_ She shakes her head. _The counterattack is coming, mark my words._";

begintalknode;
	state = 142;
	nextstate = 143;
	question = "_What sort of work on the side?_";
	text1 = "_Well, I've made a lot of excellent weapons, which are available at reasonable prices. Also, if you have truly good taste, you can improve your equipment here._";

begintalknode;
	state = 141;
	nextstate = -1;
	question = "_Do you have anything for sale?_";
	text1 = "You conclude your business.";
	code =
		begin_shop_mode("Winn's Gear","Winn's equipment is first rate, some of the finest the Empire has to offer. Not surprising, considering where she is.",122,4,3);
	break;

begintalknode;
	state = 143;
	nextstate = 144;
	question = "_How can you improve my equipment?_";
	text1 = "She points at the gate to the south. _There's some machinery in there, the product of the finest mages in the Empire. It processes gems, valuable ores and other reagents, absorbs them, generates energy, and blesses items._";
	text2 = "_Of course, the proper materials are expensive. But for a mere four thousand coins, some of your equipment can be blessed._";
	action = SET_SDF 34 13 1;

begintalknode;
	state = 141;
	nextstate = 143;
	condition = gf(34,13) >= 1 && gf(34,29) == 0;
	question = "_Can you still do work on my equipment?_";
	text1 = "_Work? Why, yes. I can do a variety of useful, if unpredictable, improvements._";

begintalknode;
	state = 141;
	nextstate = -1;
	condition = gf(34,13) >= 1;
	question = "_Exactly what sort of improvement will my item get?_";
	text1 = "_That's a fair question. It works on most armor and weapons.  The control of the device is not what it could be. It improves items for the better, though. Almost always._";

begintalknode;
	state = 144;
	nextstate = 141;
	question = "_I would like to improve my items._ (Pay 4000 coins.)";
	code =
		run_hardcode(51);
	break;

begintalknode;
	state = 144;
	nextstate = 141;
	question = "_No, thank you._";
	text1 = "_All right._";
	
begintalknode;
	state = 141;
	nextstate = -1;
	condition = 1;
	question = "_I would like to sell something._";
	text1 = "You conclude your business.";	
	code = 
		begin_sell_mode();
	break;

begintalknode;
	state = 141;
	nextstate = -1;
	condition = 1;
	question = "_I don't need anything._";
	text1 = "_Then I wish you success in battle._";
	action = END_TALK;
	
// Vladimir

begintalknode;
	tag = 160;
	state = -1;
	nextstate = 169;
	question = "Vladimir";
	text1 = "An officious bureaucrat stands by the door to the throne room, waiting. He sniffs slightly as you approach. When you try to introduce yourself, he doesn't pay attention. He's been told all about you.";
	text2 = "_Chief Valorim Liaison Vladimir, at your service._";
	text5 = "Liaison Vladimir stands by the door to the throne room, waiting. He isn't impressed by you. But then, he hasn't called guards to slay you, so things could be worse.";
	action = INTRO;

begintalknode;
	state = 169;
	nextstate = 170;
	condition = gf(34,16) == 0;
	question = "_What are you doing here?_";
	text1 = "_Waiting for you. I assume you wish to see Empress Prazac._";

begintalknode;
	state = 170;
	nextstate = -1;
	question = "_No._";
	text1 = "_Then you certainly have no business with me. Good day._";
	action = END_TALK;

begintalknode;
	state = 170;
	nextstate = 171;
	question = "_Yes._";
	text1 = "_Well, she wishes to see you. However, the situation has several complexities._";

begintalknode;
	state = 171;
	nextstate = 172;
	question = "_What's the problem?_";
	text1 = "_Everything is currently unstable. Certain factions, should they find that the Empress is dealing with Avernites, would become very aggravated, and there would be difficulties. Serious difficulties._";

begintalknode;
	state = 172;
	nextstate = 173;
	question = "_What sort of difficulties would they cause?_";
	text1 = "He draws his finger horizontally across his neck. _I'm sure you understand. Of course, I may give you permission to enter. You have but to request it._";

begintalknode;
	state = 173;
	nextstate = -1;
	condition = gf(34,16) == 0;
	question = "_So I have to ask to go through that door?_";
	text1 = "_Yes. If you don't ask, it implies the Empress is seeking you out. That is unacceptable. She would never actually desire aid from an Avernite. If you come as a supplicant, that is more tolerable. Only a little, but still._";

begintalknode;
	state = 173;
	nextstate = -1;
	condition = gf(34,16) == 0;
	question = "_I'd rather not, at this point._";
	text1 = "_Then we have nothing further to talk about. Good day._";
	action = END_TALK;

begintalknode;
	state = 173;
	nextstate = 169;
	question = "_I see. I request permission to see her royal highness._";
	code =
		run_hardcode(169);
	break;

begintalknode;
	state = 169;
	nextstate = -1;
	condition = gf(34,8) >= 1 && gf(34,16) == 0;
	question = "_I want to speak with Empress Prazac._";
	code =
		run_hardcode(169);
	break;

begintalknode;
	state = 169;
	nextstate = -1;
	condition = gf(34,16) >= 1;
	question = "_There is something else I would like to know._";
	text1 = "_I see. Sadly, I am needed elsewhere. I need to start ensuring that nobody interrupts your time with the Empress. Good luck. You may see the Empress now._ He walks through the door to the west and is gone.";
	action = END_TALK;
	code =
		erase_char(3401);
	break;

// Empress Prazac

begintalknode;
	tag = 180;
	state = -1;
	nextstate = 197;
	question = "Empress Prazac";
	text1 = "You stand before Empress Prazac, leader of the Empire. In public, she must be the sworn, eternal foe of Avernum. Yet, here you are. She looks down at you, quietly evaluating you.";
	text2 = "She seems strong, but not cruel, alert, but not nervous, skeptical, but not hostile. With a simple, regal movement of her hand, she motions you forward.";
	text5 = "Prazac sits on her marble bench, a gold circlet resting lightly on her head. _What else do you wish to know? How else may we battle the threats that endanger us all?_";
	action = INTRO;

begintalknode;
	state = 197;
	nextstate = -1;
	condition = gf(34,18) == 0;
	question = "_Greetings, mighty Empress._";
	text1 = "_Greetings. I am Prazac, Empress of the Eternal Empire, Scion of Pralgad, Highest Lady of Vantanas, Mistress of Valorim. Welcome to Blackcrag Fortress._";
	text2 = "_I am the Empress. I am here to deal with this horrible mess. What else is there to say?_ Her voice is calm, measured, utterly confident. She bears the near absolute power she wields very well. _I think you Avernites can help us, and thus help yourselves._";
	action = SET_SDF 34 18 1;

begintalknode;
	state = 197;
	nextstate = -1;
	condition = gf(34,18) >= 1 && gf(163,16) == 1;
	question = "_General Tevrono told me to find you after I defeated the golems._";
	text1 = "_Really? Surely there is an interesting tale there._ You give her an executive summary of the golem situation. _Sounds like Baziron is a competent fellow. Your words reflect well on him._";
	text2 = "_Thank you for helping Gale, since they were too incompetent to look after themselves._";
	code =
		sf(163,16,2);
		toggle_quest(112,3);
	break;
	

begintalknode;
	state = 197;
	nextstate = -1;
	condition = gf(34,18) >= 1 && has_spec_item(10) == 0;
	question = "_It was difficult to get here._";
	text1 = "_I can imagine. Allow me to make your return here easier._ A courtier brings you a key.";
	text2 = "_You will, alas, still have to enter through the back tunnel. I can't be seen as willingly negotiating with Avernum._";
	code =
		set_spec_item(10,1);
	break;

begintalknode;
	state = 197;
	nextstate = 199;
	condition = gf(34,18) >= 1;
	question = "_How did you come to rule the Empire?_";
	text1 = "_Hawthorne was my father. He was ruler of the Empire up until some Avernites slew him._ She watches you carefully as she says that. _Now I have to clean up many of the disasters he left us._";
	
begintalknode;
	state = 199;
	nextstate = -1;
	question = "_What disasters did he leave you?_";
	text1 = "_Look at the horrible death and expense of the war with Avernum. For that matter, look at the whole Avernum situation! That was his doing._";
	
begintalknode;
	state = 199;
	nextstate = 200;
	question = "_If my people killed your father, why are you willing to deal with me?_";
	text1 = "_Hawthorne was a cruel, cold man. To everyone around him. Believe me, he is not missed. He was powerful and brilliant, but too cruel to be a truly strong leader. Just look at the whole Avernum situation!_";
	
begintalknode;
	state = 200;
	nextstate = 201;
	question = "_He created Avernum?_";
	text1 = "_He prized order above all else. So what did he do? Take anyone who damaged his precious order and get rid of them! Other rulers have had enemies. He created his!_";

begintalknode;
	state = 201;
	nextstate = -1;
	question = "_What do you think of Avernum?_";
	text1 = "_I know my father sent warriors, wizards, resources down into Avernum. Not killing them outright was to his credit, I suppose. About the only merciful thing he ever did. But now the Empire has an enemy, and a strong one at that._";
	text2 = "_And worse, by getting rid of everyone different, everyone creative or unusual, he helped make this horrible mess I have to solve. We need the fresh, creative minds he casually disposed of._";


begintalknode;
	state = 197;
	nextstate = 202;
	condition = gf(34,18) >= 1;
	question = "_What do you know of the monster plagues?_";
	text1 = "_Too much. There are hundreds of thousands of our citizens dead, multitudes more wounded, or refugees. Confidence in the Empire shaken. A whole continent under quarantine. It is a mess. Yes, mess seems to describe it well._";
	text2 = "She sighs. _And worse, it could have been avoided._";

begintalknode;
	state = 202;
	nextstate = -1;
	question = "_Surely your people weren't always confident in the Empire._";
	text1 = "_As an Avernite, I am sure you can have a hard time believing how the Empire's people could love us. How the people of the Empire could love their rulers and the prosperity they provide. Not even the Avernum war shook our people's confidence in us!_";

begintalknode;
	state = 202;
	nextstate = -1;
	question = "_Has the death toll really been that high?_";
	text1 = "_If only it weren't true. Yes, the toll has been that serious._";

begintalknode;
	state = 202;
	nextstate = 203;
	question = "_Why have you imposed a quarantine on Valorim?_";
	text1 = "_I cannot imagine what they say about us in Valorim now, but the quarantine is a necessity. Otherwise, the monsters may spread. The official purpose is, of course, to have time to prepare to fight them._";
	text2 = "_However, I have serious doubts about our abilities against them._";

begintalknode;
	state = 203;
	nextstate = 204;
	question = "_Surely the Empire can defend itself against anything._";
	text1 = "_Whoever made the monsters designed them very well. They attack in completely non-standard ways._";
	text2 = "_You see, when Hawthorne sent anyone different to Avernum, we lost exactly the creative minds, especially in our military, who could have figured out ways to defeat them. Thus, an avoidable catastrophe occurred._";

begintalknode;
	state = 204;
	nextstate = 205;
	condition = gf(308,8) == 0;
	question = "_Is that why you wanted to see me?_";
	text1 = "_Yes._ She pauses, and steels herself to say what she is about to say. _We need Avernum's help. Avernum defeated us. Avernum is the only force that can destroy the monsters too._";
	text2 = "_I have an important offer to make to Avernum. That is why I have a diplomatic mission for you._";

begintalknode;
	state = 205;
	nextstate = -1;
	condition = gf(308,8) == 0;
	question = "_I do not think Avernum will want to work with you._";
	text1 = "The Empress frowns. In a moment, her charm is gone, replaced with grim confidence. She is annoyed. _Avernum will refuse us help? Then they are fools._";
	text2 = "_I am offering them a hand of friendship. If they refuse us, we will have no choice but fight them again. And, if this happens, we will not be defeated twice. You would do well to think on this. Now go and reconsider your arrogance._";
	action = END_TALK;

begintalknode;
	state = 205;
	nextstate = -1;
	condition = gf(308,8) == 0;
	question = "_I will help you as well as I can._";
	code =
		run_hardcode(170);
	break;

begintalknode;
	state = 197;
	nextstate = -1;
	condition = has_spec_item(25) > 0;
	question = "_I have seen Anaximander. He gave me a scroll to give to you._ (Give the message.)";
	code =
		run_hardcode(170);
	break;

begintalknode;
	state = 197;
	nextstate = 206;
	condition = gf(34,18) >= 1;
	question = "_Some Empire soldiers attacked me when we were trying to reach you._";
	text1 = "_I am not surprised. There are elements in the government disloyal to me. They must be found and removed. They wish nothing but for the war against Avernum to never, ever end, no matter what threats face us._";

begintalknode;
	state = 206;
	nextstate = -1;
	question = "_What will you do to those disloyal to you?_";
	text1 = "_I want to be a just monarch. But I am still the monarch. I will be obeyed._";

begintalknode;
	state = 206;
	nextstate = -1;
	question = "_What sort of relationship do you want with Avernum?_";
	text1 = "_Avernum should never have existed. Everyone in it should be welcome to return to the surface. Criminals must be punished, but the misfits and fools should be allowed to find their own happiness._";
	text2 = "_As long as one does not act directly against me, I think that person should be able to live a life in the sun._";

begintalknode;
	state = 206;
	nextstate = -1;
	question = "_Are you in any danger?_";
	text1 = "_A monarch is always in danger of assassination. Understand, I am taking a great risk by dealing with you, even in secret. I do it because it is necessary._";

begintalknode;
	state = 197;
	nextstate = -1;
	condition = gf(34,18) >= 1;
	question = "_May I explore more of this mighty fortress?_";
	text1 = "_You may go where you will, as long as you do not trouble any guards who prevent your movement. Your visit here must remain discreet. If some forces find that I am meeting with Avernites, there will be difficulties._";

begintalknode;
	state = 197;
	nextstate = -1;
	condition = gf(308,3) >= 1;
	question = "_What are the exact terms of the agreement between you and Avernum?_";
	text1 = "She smiles. _You are inquisitive. I am afraid that you are also foolish to want to know. If these high matters of state were for you to know, someone would have told you the details. But nobody has._";

begintalknode;
	state = 197;
	nextstate = -1;
	condition = has_spec_item(15) > 0;
	question = "_Mayor Scowcroft gave me this ticket. I am supposed to turn it in here to get a reward._";
	code =
		run_hardcode(55);
	break;

